<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var a = 1

    function getA() {
        console.log(this.a, 'line 11');
    }

    var obj = {
        a: 2,
        getA: function () {
            console.log(this.a, 'line 18');
            getA()
        },
        getA2: getA
    }

    obj.getA()
    obj.getA2()     // 2
</script>
</body>
</html>
